from .ui_field import *
class ParameterManager:

    @staticmethod
    def add_parameter(instance, display_name):
        with ui.card():
            for name, parameter in instance.__dict__.items():
                if isinstance(parameter, UIField):
                    parameter.render()
    @staticmethod
    def run_in_thread():
        import threading
        def start():
            ui.run(reload=False, host='192.168.1.121',port=8080)
        threading.Thread(target=start, daemon=True).start()

